﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace RMS.DataAccess.Common
{
    public class EntityResult<T> : IEnumerable<T> where T : IEntity
    {
        public IEnumerable<T> Rows { get; set; }
        public int RowCount { get; set; }

        public IEnumerator<T> GetEnumerator()
        {
            return Rows.GetEnumerator();
        }

        IEnumerator IEnumerable.GetEnumerator()
        {
            return Rows.GetEnumerator();
        }
    }
}